<?php
$result = array('count' => $this->oPager->getItemCount(), 'matched' => array());

if($oRowset)
{
	foreach($oRowset as $oRow)
	{
		$result['matched'][$oRow->id] = $oRow->title;
	}
}

echo json_encode($result);
?>